{extend name='public/window' /}

{block name="content"}
<style type="text/css">
  .laydate_table {
    display: none;
  }

  #laydate_hms {
    display: none !important;
  }
</style>
<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-body" style="padding: 15px;">
      <form class="layui-form" action="" lay-filter="form">
        <div class="tianxie">
          <input type="hidden" name="__token__" id="token" value="{:token()}"/>
          <input type="hidden" name="id" id="id" value="{$info.id}"/>
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">月份</label>
              <div class="layui-input-inline">
                <input type="text" id="dateTime" name="dateTime" class="layui-input" disabled value="{$info.dateTime}"
                       placeholder="选择月份">
              </div>
            </div>
          </div>
          <div class="feilv">
            <div class="layui-form-item">
              <label class="layui-form-label">峰电价 *</label>
              <div class="layui-input-block">
                <input type="digit" name="fmoney" value="{$info.fmoney}"
                       placeholder="请输入单价" disabled class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">谷电价 *</label>
              <div class="layui-input-block">
                <input type="digit" name="gmoney" disabled value="{$info.gmoney}"
                       placeholder="请输入单价" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">平电价 *</label>
              <div class="layui-input-block">
                <input type="digit" name="pmoney" disabled value="{$info.pmoney}"
                       placeholder="请输入单价" class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">写字楼分摊电价 *</label>
              <div class="layui-input-block">
                <input type="digit" name="tmoney" value="{$info.tmoney}"
                       placeholder="请输入单价"  class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">商场分摊电价 *</label>
              <div class="layui-input-block">
                <input type="digit" name="stmoney"  value="{$info.stmoney}"
                       placeholder="请输入单价" class="layui-input" >
              </div>
            </div>
          </div>
          <div class="layui-form-item danyi">
            <label class="layui-form-label">零售单价 *</label>
            <div class="layui-input-block">
              <input type="digit" name="linmoney" disabled value="{$info.linmoney}"  placeholder="请输入单价"
                      class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">总电量 *</label>
            <div class="layui-input-block">
              <input type="digit" name="alluse" disabled placeholder="请输入总电量"
                     value="{$info.alluse}" class="layui-input">
            </div>
          </div>
        </div>
        <div class="chuang" style="text-align: center">
          <button class="layui-btn"  lay-submit="" lay-filter="detail">保存</button>
        </div>
      </form>
    </div>
  </div>
</div>
<script>
  layui.use(['element', 'form', 'table', 'jquery', 'lucky', 'laydate', 'xmSelect'], function () {
    var element = layui.element;
    var table = layui.table;
    var form = layui.form;
    var laydate = layui.laydate;
    var $ = layui.jquery;
    var lucky = layui.lucky;
    var id_lists = [];

    form.on('submit(detail)', function (data) {
      console.log(data.field)
      lucky.FormSubmit("{:url('detail')}",data.field,true);
      return false;
    });
  })

</script>

{/block}

